QT       += core gui xml

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

CONFIG += c++11

# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

RC_ICONS = image/icon.ico
##-------Windows-----------
#win32 {
#LIBS += -L$$PWD/../../libs/windows/ -lqscintilla2_qt5

#INCLUDEPATH += $$PWD/../../libs/windows
#DEPENDPATH += $$PWD/../../libs/windows
##Debug: LIBS += -L$$PWD -lqscintilla2_qt5d
#}
##-------Macos-------------
#macx {
#LIBS+= "$$PWD/../../libs/macos/libqscintilla2_qt6.15.1.0.dylib"
#}
##-------Linux-------------
#unix {
#contains(QT_ARCH, arm64){#arm64
#LIBS+= "$$PWD/../../libs/arm64/libqscintilla2_qt5_arm64.so"
#}else{#x86
#LIBS+= "$$PWD/../../libs/linux/libqscintilla2_qt5.so"
#}
#}
SOURCES += \
    GlobalSingal.cpp \
    code/code_window.cpp \
    head_button/dialog_new_module.cpp \
    main.cpp \
    mainwindow.cpp \
    module/module_window.cpp \
    module/modulefileconfig.cpp \
    module/property/module_port_property.cpp \
    module/property/module_propertys.cpp \
    module/property/module_window_property.cpp \
    pin/pin.cpp \
    projectFileConfig/projectfileconfig.cpp \
    project_startup/prostartup_newpro.cpp \
    project_startup_interface.cpp


HEADERS += \
    GlobalSingal.h \
    code/code_window.h \
    head_button/dialog_new_module.h \
    mainwindow.h \
    module/module_header.h \
    module/module_window.h \
    module/modulefileconfig.h \
    module/property/module_port_property.h \
    module/property/module_propertys.h \
    module/property/module_window_property.h \
    pin/pin.h \
    projectFileConfig/projectfileconfig.h \
    project_startup/prostartup_newpro.h \
    project_startup_interface.h


FORMS += \
    code/code_window.ui \
    head_button/about.ui \
    head_button/dialog_new_module.ui \
    mainwindow.ui \
    module/module_window.ui \
    module/property/module_port_property.ui \
    module/property/module_window_property.ui \
    pin/pin.ui \
    project_startup/prostartup_newpro.ui \
    project_startup_interface.ui

TRANSLATIONS += \
    eda_zh_CN.ts
CONFIG += lrelease
CONFIG += embed_translations

# 增加 QScintilla
CONFIG += qscintilla2

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

DISTFILES += \
    image/icon.ico \
    image/箭头(input或output).png \
    image/箭头(input或output).png

RESOURCES += \
    image.qrc



win32:CONFIG(release, debug|release): LIBS += -L$$PWD/../../libs/windows/ -lqscintilla2_qt5
else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/../../libs/windows/ -lqscintilla2_qt5d

INCLUDEPATH += $$PWD/../../libs/windows
DEPENDPATH += $$PWD/../../libs/windows
